﻿@inject IStringLocalizer<BootstrapBlazor.Shared.Samples.Rates> Localizer

<Rate Value="@BindValue" ValueChanged="@OnValueChanged" />
<ConsoleLogger @ref="Logger" class="mt-3" />

@code {
    [NotNull]
    private ConsoleLogger? Logger { get; set; }

    private double BindValue { get; set; } = 3.0;

    private void OnValueChanged(double val)
    {
        BindValue = val;
        Logger.Log($"{Localizer["RatesLog"]} {val}");
    }
}
